import React, { Component } from 'react'
import PubSub from 'pubsub-js'

export default class Footer extends Component {

  render() {
    // const total = PubSub.publish('Footer',todoObj)
    // console.log(total.length)

    return (
      <div className="todo-footer">
        <label>
          <input type="checkbox"/>
        </label>
        <span>
          <span>已完成</span> / 全部
        </span>
        <button>清除已完成任务</button>
      </div>
    )
  }
}
